package cn.wolfcode.wms.domain;


import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter@Setter
public class Employee extends BaseDomain{


    private String name;
    private String password;//密码需要加密
    private String email;
    private Integer age;
    private boolean admin;

    //many2on
    private Department dept;

    //many2many:员工为主导
    private List<Role> roles = new ArrayList<>();

    public String toString(){

        return "[admin="+this.admin+"]";
    };

}
